﻿import java.util.*;
public class Er003 {
/*
 * 	问题：从控制台输入学员王浩的三门课程（STB、Java、SQL）的成绩，编写程序实现：
 * 				Java课程和SQL课程的分数之差，三门课程平均分。
 */
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入王浩的STB成绩：");
		int scoreSTB = input.nextInt();
		System.out.println("请输入王浩的Java成绩：");
		int scoreJava = input.nextInt();
		System.out.println("请输入王浩的SQL成绩：");
		int scoreSQL = input.nextInt();
		System.out.println("*****************************\n");
		System.out.println("STB\tJava\tSQL");
		System.out.println(scoreSTB + "\t" + scoreJava + "\t" + scoreSQL);
		System.out.println("*****************************\n");
		int diffen = scoreJava - scoreSQL;
		double avg = (scoreSTB + scoreJava + scoreSQL)/3 ;
		System.out.println("Java和SQL课程分数差是：" + diffen);
		System.out.println("三门课程的平均分是：" + avg);

	}

}
